package com.ruoyi.crm.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.crm.domain.ProductNeed;
import com.ruoyi.crm.service.Impl.ProductNeedServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;


/**
 *
 * 产品需求控制层
 * @author  dxy
 *
 */

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/productNeed")
public class ProductNeedController extends BaseController {

    private final ProductNeedServiceImpl productNeedServiceImpl;
    /**
     * 查询产品需求列表
     */
    @GetMapping("/productNeed")
    public R<List<ProductNeed>> getProductNeedList() {
        List<ProductNeed> list=productNeedServiceImpl.selectProductNeedList(new ProductNeed());
        return R.ok(list);
    }
}
